Robotic-assisted training of the hand